home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13077 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.4 KB

  1. Path: news.crystalball.com!news
  2. From: Larry Weiss <lfw@oc.com>
  3. Newsgroups: comp.lang.c++,comp.lang.c,comp.object,comp.software-eng
  4. Subject: Re: Portability of code & skills (Beware of "C" Hackers etc)
  5. Date: Wed, 20 Mar 1996 14:06:58 -0600
  6. Organization: crystalball.com
  7. Message-ID: <31506562.5988@oc.com>
  8. References: <4ikb6kINN1is@mayne.ugrad.cs.ubc.ca> <DoI5Ao.AyJ@assip.csasyd.oz> <EJH.96Mar19163745@larry.gsfc.nasa.gov> <3150415E.6396@sdt.com> <4ip5om$s9@bughouse.imonics.com>
  9. NNTP-Posting-Host: external.oc.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. Imonics Corporation wrote:
  16. > In article <3150415E.6396@sdt.com>, Larry Baker  <leb@sdt.com> wrote:
  17. > >Remember that before UNIX, there was no commercially available,
  18. > >portable, licenseable multi-user OS that could live on vastly
  19. > >different computer architectures. (ok, I'm ignoring OS/9, but
  20. > >I think it's more of a real-time, niche-oriented OS.)
  21. > >The same argument holds for the "success" of C.  At the time,
  22. > >the only other language that "competed" with C for the mainstream,
  23. > >popular (PC, workstation) programming population was Pascal,
  24. > >compiled BASIC, FORTRAN or PL/M.  FORTRAN was the only one
  25. > >with a recognizable, widely accepted standard and reasonable
  26. > >portability.
  27. > The portability issue is/was partially myth; it gave rise to
  28. > non-computer people (and some who should have known better) saying
  29. > things like "Write it in C so it will be portable".  That's
  30. > horse manure.  It is easier to WRITE portable code in C because
  31. > there are more C compilers, but that doesn't mean that C code
  32. > is inherently more portable.  The other thing about portability
  33. > is the commercial part of the myth -- companies don't really
  34. > want to change machines and operating systems every few years,
  35. > that's for people who regard them as toys.
  36.  
  37.  
  38. I believe that C programs are on average more portable than programs written
  39. in any other language.     The C language was defined by a de-facto standard 
  40. definition in the book "The C Programming Language" by K&R, and that language
  41. was useful enough "as-is" ("as-was" ?) that implementors didn't go crazy
  42. adding extensions in the early days.   Those compromises to the Intel chips ("near" 
  43. "far" etc.) didn't occur until late in the game, and were used
  44. sparingly enough to not impact the portability of much code.
  45. (simple #defines are usually sufficient to null these out when not needed)
  46.